<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="pageContent">
	<form method="post" action="${base}/customer/customer/save.do" class="pageForm required-validate" onsubmit="return validateCallback(this, ${targetType}AjaxDone);">
	<!-- 来源页面，提交后刷新此页面 -->
	<input type="hidden" name="targetType" value="${targetType}">
	<input type="hidden" name="targetId" value="${targetId}">
	<!-- 连续录入 -->
	<c:if test="${entity.id!=null}">
	 <input type="hidden" name="id"  value="${entity.id}"/> 
	 <input type="hidden"  name="timestamp"  value="${entity.timestamp}"/> 
	 </c:if>
		<div class="pageFormContent" layoutH="56">
	 <div class="panel">
	 <h1>公司信息</h1>
	  <div>
	  
	  	
 	        <p>
				<label>客户类型：</label>
				<w:codeselect type="customer.type" value="${entity.type}" name="type"></w:codeselect>
			</p>
			
				<p>
				<label>客户等级：</label>
			<w:codeselect type="customer.level" value="${entity.level}" name="level"></w:codeselect>
			</p>
				 <div class="divider"></div>
			<p>
				<label>公司全名：</label>
				<input name="company.fullName" class="required" type="text"   value="${entity.company.fullName}" />
			</p>
			
				<p>
				<label>法人代表：</label>
				<input name="company.managerName"  type="text"   value="${entity.company.managerName}" />
			</p>
 
 				<p>
				<label>地址：</label>
				<input name="company.address"  type="text"   value="${entity.company.address}" />
			</p>
			
							<p>
				<label>联系电话：</label>
				<input name="company.phonenumber"  type="text"   value="${entity.company.phonenumber}" />
			</p>
			
							<p>
				<label>主要产品一：</label>
				<input name="company.mainProduct1"  type="text"   value="${entity.company.mainProduct1}" />
			</p>
			
			<p>
				<label>主要产品二：</label>
				<input name="company.mainProduct2"  type="text"   value="${entity.company.mainProduct2}" />
			</p>
						<p>
				<label>国有控股情况：</label>
				<input name="company.stateControl"  type="text"   value="${entity.company.stateControl}" />
			</p>
						<p>
				<label>开工时间：</label>
				<input name="company.begintime"  type="text"   value="${entity.company.begintime}" />
			</p>
						<p>
				<label>机构类别：</label>
				<input name="company.orgtype"  type="text"   value="${entity.company.orgtype}" />
			</p>
						<p>
				<label>上年营业收入：</label>
				<input name="company.lastBusinessCount"  type="text"   value="${entity.company.lastBusinessCount}" />
			</p>
						<p>
				<label>资产合计：</label>
				<input name="company.totalAssets"  type="text"   value="${entity.company.totalAssets}" />
			</p>
			
						<p>
				<label>职工人数：</label>
				<input name="company.employee"  type="text"   value="${entity.company.employee}" />
			</p>
			
			<p>
				<label>流动资产合计：</label>
				<input name="company.flowAssert"  type="text"   value="${entity.company.flowAssert}" />
			</p>
			</div>
		 </div>
 
		 	<div class="tabs">
		 	<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<li><a href="javascript:;"><span>联系人</span></a></li>
				</ul>
			</div>
		</div>
		 	
		 			<div class="tabsContent">
		 			
		 			<div>
		 								<table class="list nowrap itemDetail" addButton="新建联系人" width="100%">
						<thead>
							<tr>
								<th type="text" name="contactsname" size="10" fieldClass="required" >姓名</th>
								<th type="select"  html='<w:codeselect type="sex" name="contactssex"/>'>性别</th>
								<th type="text" name="contactspisition">职位</th>
								<th type="text" name="contactsage" fieldClass="digits" size="2">年龄</th>
								<th type="text" name="contactsworkPhone">工作电话</th>
								<th type="text" name="contactshomePhone">家庭电话</th>
								<th type="text" name="contactsworkAddress" size="20">单位地址</th>
								<th type="text" name="contactshomeAddress" size="20">家庭地址</th>
								<th type="text" name="contactsemail">电子邮件</th>
								
								<th type="del" width="60">操作</th>
							</tr>
						</thead>
						<tbody></tbody>
					</table>
		 			</div>
		 			
		 			</div>
		 	
		 	</div>
		 
		 
		 
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
